package com.gaoyubo.service;

import com.gaoyubo.entity.Insurance;
import com.gaoyubo.entity.Insurance_type;
import com.gaoyubo.entity.SearchVo;
import com.gaoyubo.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface InsuranceService {
    //分页模糊
    Page<Insurance> findAll(Integer pageNum, Integer pageSize, SearchVo searchVo);
    //类型列表
    List<Insurance_type> insuranceTypeList();
    //添加用户
    <U extends User> U insert(U u);
        //添加类型
    <T extends Insurance_type> T insert2(T t);

    <S extends Insurance> S insert3(S s);

}
